#include "ABIBase.h"
#include "ctors.h"

namespace zero
{
void Ctors::init(const Section& ctors)
{
	// execute ctors section.
	typedef void (*CTORS)(void);
	const CTORS* cbs = reinterpret_cast<const CTORS*>(ctors.begin);
	for (unsigned int i = 0; i < (ctors.end - ctors.begin) / sizeof(CTORS); i++)
		cbs[i]();
}

void Ctors::tini(const Section& dtors)
{
}
}
// vim: foldmarker=<([{,}])> foldmethod=marker
